$(function(){
	slideTu();
})

function slideTu(index){
	var galleryTop = new Swiper('.gallery-top', {
		initialSlide :index,
        spaceBetween: 10,
        autoplay : 5000,
    });
    var galleryThumbs = new Swiper('.gallery-thumbs', {
    	initialSlide :index,
        spaceBetween: 10,
        centeredSlides: true,
        slidesPerView: 'auto',
        slideToClickedSlide: true,
    });
    galleryTop.params.control = galleryThumbs;
    galleryThumbs.params.control = galleryTop;
}
